package com.yehui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HelloController {

	@GetMapping("/hell")
	public String hello(){
		return "hell controller";
	}


	@GetMapping("/meinv")
	public String meinv(String name, Model model){
		model.addAttribute("info",name);
		return "meinv:"+name;
	}
}
